package io.geekidea.springbootplus.system.service;

import io.geekidea.springbootplus.system.entity.AdminSchool;
import io.geekidea.springbootplus.system.param.AdminSchoolPageParam;
import io.geekidea.springbootplus.framework.common.service.BaseService;
import io.geekidea.springbootplus.framework.core.pagination.Paging;

/**
 *  服务类
 *
 * @author miko
 * @since 2020-10-10
 */
public interface AdminSchoolService extends BaseService<AdminSchool> {

    /**
     * 保存
     *
     * @param adminSchool
     * @return
     * @throws Exception
     */
    boolean saveAdminSchool(AdminSchool adminSchool) throws Exception;

    /**
     * 修改
     *
     * @param adminSchool
     * @return
     * @throws Exception
     */
    boolean updateAdminSchool(AdminSchool adminSchool) throws Exception;

    /**
     * 删除
     *
     * @param id
     * @return
     * @throws Exception
     */
    boolean deleteAdminSchool(Long id) throws Exception;


    /**
     * 获取分页对象
     *
     * @param adminSchoolQueryParam
     * @return
     * @throws Exception
     */
    Paging<AdminSchool> getAdminSchoolPageList(AdminSchoolPageParam adminSchoolPageParam) throws Exception;

}
